Skip to content

feat(2fa): scannable QR code for enrollment - #24

Merged
Lingz450 merged 1 commit into
mainfrom
feat/2fa-qr
Jun 24, 2026
Merged

feat(2fa): scannable QR code for enrollment#24
Lingz450 merged 1 commit into
mainfrom
feat/2fa-qr

Conversation

@Lingz450

Copy link
Copy Markdown
Collaborator

Summary

Adds a QR code to 2FA enrollment so a phone authenticator (Google Authenticator, Authy, 1Password) can scan it instead of typing the key. Shown in both enrollment surfaces: Settings → Security and the at-login challenge step.

Generated client-side with the qrcode library (rendered to a data URL in the browser), so the TOTP secret never leaves the device. The manual setup key and the otpauth:// deep link remain as fallbacks ("Can't scan? Enter this key manually" / "On this phone? Open in authenticator app").

Frontend-only; no backend change.

Verification

Typecheck, lint, build, and 132 web tests pass.

🤖 Generated with Claude Code

Adds a client-side QR (qrcode lib, rendered in-browser so the TOTP secret
never leaves the device) to both 2FA enrollment surfaces: Settings -> Security
and the at-login challenge step. The manual setup key and the otpauth deep
link remain as fallbacks ("can't scan?" / "on this phone?").

Frontend-only; backend unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
petrobrain Ready Ready Preview, Comment Jun 24, 2026 2:52pm

@Lingz450
Lingz450 merged commit 1deeb4a into main Jun 24, 2026
7 checks passed
@Lingz450
Lingz450 deleted the feat/2fa-qr branch June 24, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant